package example.chapter3;

import java.util.ArrayList;
import java.util.List;

import example.model.Movie;

public class MovieRankAction {

	private List<Movie> listMovie;
	
	public String execute() throws Exception{
		listMovie = new ArrayList<Movie>();
		
		listMovie.add(new Movie("ACTION-07-001", "Die Hard 4", 4));
		listMovie.add(new Movie("ADVENTURE-07-001", "Harry Portter - Order of Phoenix", 4));
		listMovie.add(new Movie("SF-07-001", "Transformer", 4));
		listMovie.add(new Movie("DRAMA-07-001", "Oceans13", 3));
		listMovie.add(new Movie("ACTION-07-001", "Taxi4", 2));
		
		return "success";
	}

	public List<Movie> getListMovie() {
		return listMovie;
	}

	public void setListMovie(List<Movie> listMovie) {
		this.listMovie = listMovie;
	}
	
}
